import {
  HashRouter as Router,
  Routes,
  Route,
} from 'react-router-dom'
import './App.css'
import Home from './views/Home'
import Chat from './views/Chat'
import Header from './views/Home/components/Header'
import LoginModel from '@/components/LoginModel'
import { AppProvider } from '@/store'

function App() {
  return (
    <AppProvider>
      <Header />
      <Router>
        <Routes>
          <Route path="/" element={<Home />} />
          <Route path="/chat" element={<Chat />} />
        </Routes>
      </Router>
      <LoginModel />
    </AppProvider>
  )
}

export default App
